package com.action.sboard;

import java.util.ArrayList;
import java.util.List;
import java.util.*;
import com.db.sboard.*;
import com.db.sboard.BoardVO;
import com.db.sboard.boardDAO;

public class SubAction {
		private List<BoardVO> list=new ArrayList<BoardVO>();
	    private boardDAO sbDAO;
	    
		public void setSbDAO(boardDAO sbDAO) {
			this.sbDAO = sbDAO;
		}
		    
			
			public List<BoardVO> getList() {
				return list;
			}

			public String execute()throws Exception
			{
				list=sbDAO.empAll();
				System.out.println(list);
				return "success";
			}
}
